package com.net128.beatportapps.downloader;

import java.awt.Component;

import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JTable;
import javax.swing.table.TableCellRenderer;

public class TableHeaderCellRenderer extends JLabel implements TableCellRenderer {
	private static final long serialVersionUID = 1L;
	
	public TableHeaderCellRenderer() {
		setBorder((BorderFactory.createEmptyBorder(0,1,1,1)));
	}
	
	public Component getTableCellRendererComponent(JTable table, Object value,
			boolean isSelected, boolean hasFocus, int rowIndex, int vColIndex) {
		setText(value.toString());
		return this;
	}
}